import request from '@/utils/request'

// 查询机物告警列表
export function listThingwarn(query) {
  return request({
    url: '/ruoyi-aimp/thingwarn/list',
    method: 'get',
    params: query
  })
}

// 查询机物告警详细
export function getThingwarn(thingwarnId) {
  return request({
    url: '/ruoyi-aimp/thingwarn/' + thingwarnId,
    method: 'get'
  })
}

// 新增机物告警
export function addThingwarn(data) {
  return request({
    url: '/ruoyi-aimp/thingwarn',
    method: 'post',
    data: data
  })
}

// 修改机物告警
export function updateThingwarn(data) {
  return request({
    url: '/ruoyi-aimp/thingwarn',
    method: 'put',
    data: data
  })
}

// 删除机物告警
export function delThingwarn(thingwarnId) {
  return request({
    url: '/ruoyi-aimp/thingwarn/' + thingwarnId,
    method: 'delete'
  })
}
